<meta charset="UTF-8">
<div id="resource-tree-view" class="unswift-tree">
	<div class="unswift-tree-toolbar">
		<div class="layui-input-wrap layui-input-inline unswift-tree-search">
			<div class="layui-input-prefix">
	          <i class="layui-icon layui-icon-search"></i>
	        </div>
			<input class="layui-input" placeholder="资源名称" name="tree-search" onkeyup="$.module.currModule.treeSearch(this, event);">
		</div>
		<span auth="system.resource.export" type="export" class="layui-btn layui-btn-sm layui-btn-primary" onclick="$.module.currModule.export();"><i class="layui-icon layui-icon-export"></i>导出</span>
		<span auth="system.resource.update" type="submit" class="layui-btn layui-btn-sm layui-btn-disabled" onclick="$.module.currModule.handleUpdate();">提交</span>
		<span auth="system.resource.create" type="addNext" class="layui-btn layui-btn-normal layui-btn-sm layui-btn-disabled" onclick="$.module.currModule.addChild();">创建下级</span>
		<span auth="system.resource.create" type="addBrother" class="layui-btn layui-btn-normal layui-btn-sm layui-btn-disabled" onclick="$.module.currModule.addBrother();">创建平级</span>
		<span auth="system.resource.delete" type="delete" class="layui-btn layui-btn-danger layui-btn-sm layui-btn-disabled" onclick="$.module.currModule.deleteThis();">删除</span>
	</div>
	<div class="unswift-tree-body">
		<div class="unswift-tree-side">
			<div id="resource-tree" class="unswift-tree-show">
				
			</div>
		</div>
		<div class="unswift-tree-move" onmousedown="$.tree.startMove(this, event)"></div>
		<div id="resource-tree-body" class="unswift-tree-view auto-scroll">
			
		</div>
	</div>
</div>
<script type="text/javascript" src="/js/admin/system/resource.js"></script>